package com.example.model;

import lombok.Builder;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 表名
 *
 * @author Songguoqing
 * @date Fri Apr 19 21:57:41 CST 2024
 */
@Data
@Builder
@Entity
@Table(name = "tb_order")
public class TbOrder {
    /**
     * 订单id
     */
    @Id
    private Long id;
    /**
     * 用户id
     */
    private Long userId;

    /**
     * 商品名称
     */
    private String name;

    /**
     * 商品价格
     */
    private Long price;

    /**
     * 商品数量
     */
    private Integer num;

}